package com.ruoyi.framework.gis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class GeoserverConfig {
    @Value("${geoserver.endpoint}")
    private String endpoint;
    @Value("${geoserver.accessKey}")
    private String accessKey;
    @Value("${geoserver.secretKey}")
    private String secretKey;
    @Value("${geoserver.geoserverHostDataDirRoot}")
    private String geoserverHostDataDirRoot;
    @Value("${geoserver.geoserverDataDir}")
    private String geoserverDataDir;

    @Value("${geoserver.postgis.host}")
    private String host;
    @Value("${geoserver.postgis.port}")
    private Integer port;
    @Value("${geoserver.postgis.username}")
    private String username;
    @Value("${geoserver.postgis.password}")
    private String password;
    @Value("${geoserver.postgis.database}")
    private String database;

    public String getGeoserverHostDataDirRoot() {
        return geoserverHostDataDirRoot;
    }

    public void setGeoserverHostDataDirRoot(String geoserverHostDataDirRoot) {
        this.geoserverHostDataDirRoot = geoserverHostDataDirRoot;
    }

    public String getGeoserverDataDir() {
        return geoserverDataDir;
    }

    public void setGeoserverDataDir(String geoserverDataDir) {
        this.geoserverDataDir = geoserverDataDir;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }
}

